package com.crazy.bookstore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crazy.bookstore.entity.Book;
import com.crazy.bookstore.vo.BookForAdminVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author: 卢辉宇
 * @date: 2022/12/27 20:41
 * @description:
 */
@Mapper
public interface BookMapper extends BaseMapper<Book> {
    void updateScore();

    //只有返回值为IPage 参数为IPage则mybatisPlus就自动很好页
    IPage<BookForAdminVO> selectBookList(IPage iPage);

}
